<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="dao.*"  %>
<%@page import="entity.*"  %>
<%@page import="java.util.List"  %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>学生信息管理删除页面</title>
<link rel="stylesheet" type="text/css" href="naive.css" />
<script type="text/javascript">
	function j(){
		if(confirm("是否删除？若取消，则回到学生信息管理删除页面！")){
			submit();
		}
		else{
		window.self.location="Delete.jsp";
		}
		return false;
	}
</script>
</head>
<body>
<table>
	
	<%
			List<JavaBean> list=StudentDao.readList();
				for(JavaBean l:list){
			out.println("<tr><td>"+l.getId()+"</td><td>"+l.getpId()+"</td><td>"+l.getName()
						+"</td><td>"+l.getSex()+"</td><td>"+l.getBirthdate()+"</td><td>"+
						"<a href='Delete1.jsp?id="+l.getId()+"&action=del' onclick='return j()' > 删除 </td></tr>"
						);
				}
		%>
</table>
</body>
</html>